<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>上传视频 - VideoShop</title>
    <link rel="stylesheet" type="text/css" href="indexStyle.css">
    <style>
/* 上传页面样式 */
.uploadMain {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.uploadMain h2 {
    text-align: center;
}

.uploadMain form {
    display: flex;
    flex-direction: column;
}

.uploadMain label {
    margin: 10px 0 5px;
}

.uploadMain input, .uploadMain textarea, .uploadMain select {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.uploadMain input[type="submit"] {
    background-color: #008cba;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.uploadMain input[type="submit"]:hover {
    background-color: #0bb8b8;
}

    </style>
</head>
<body>
    <header>
        <table class="headerTable">
            <tr>
                <td>
                    <img src="img/logo.png" alt="VideoShop Logo" onclick="location.href='index.html'" class="logo">
                </td>
                <td>
                    <h1 onclick="location.href='index.html'">VideoShop</h1>
                </td>
                <td>
                    <form action="/search" method="get">
                        <input type="search" placeholder="请输入视频名称">
                        <input type="image" src="img/search.png">
                    </form>
                </td>
                <td class="menuTd">
                    <div class="menuTitle">分区</div>
                    <ul class="submenu">
                        <li onclick="location.href='games.html'">游戏</li>
                        <li onclick="location.href='movies.html'">电影</li>
                        <li onclick="location.href='anime.html'">动漫</li>
                    </ul>
                </td>
                <td>
                    <button onclick="location.href='upload.html'" class="uploadButton">上传视频</button>
                </td>
            </tr>
        </table>
    </header>
    <main class="uploadMain">
        <h2>上传视频</h2>
        <form action="/upload" method="post" enctype="multipart/form-data">
            <label for="file">选择文件:</label>
            <input type="file" id="file" name="file" required><br><br>
            <label for="title">视频标题:</label>
            <input type="text" id="title" name="title" required><br><br>
            <label for="description">视频简介:</label>
            <textarea id="description" name="description" required></textarea><br><br>
            <label for="category">选择分区:</label>
            <select id="category" name="category" required>
                <option value="games">游戏</option>
                <option value="movies">电影</option>
                <option value="anime">动漫</option>
            </select><br><br>
            <input type="submit" value="上传">
        </form>
    </main>
</body>
</html>
